<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
	pageEncoding="ISO-8859-1"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<%@ taglib uri='http://java.sun.com/jsp/jstl/core' prefix='c'%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">

<script language="javaScript" type="text/javascript"
	src="<c:url value='/cal/calendar.js'/>">
	
</script>

<link href="<c:url value='/cal/calendar.css'/>" rel="stylesheet"
	type="text/css">
<link href="<c:url value='/Styles/style.css'/>" rel="stylesheet"
	type="text/css" />

</head>
<body>
	<div class="page">
		<div id="header-wrapper">
			<div id="header">
				<div id="logo">
					<!-- Header -->

					<h4>&nbsp;</h4>
				</div>
			</div>
		</div>

		<div class="page-wrapper">
			<div class="main">
				<div class="colleft">
					<div class="col1">
						<!-- Side menu -->
						<h4><%@ include file="staff-logout.jsp"%></h4>
						<h4><%@ include file="employee-menu.jsp"%></h4>
						<h4>&nbsp;</h4>
					</div>
					<div class="col2">
						<!-- Main Content -->
												<p align="center">
							<strong>Applied Informations For Compensation Leave</strong>
						</p>
						<br />
						<%
							if (request.getAttribute("Datas") == null)
								response.sendRedirect("/LeaveApplication/processCompensation");
						%>
						<Form id="form2" name="form2" method="post" action="">

							<table width="200" border="1" align="center">
								<tr>
									<th colspan="50">User ID </th>
									<th colspan="50">User Name</th>
									<th colspan="50">Role </th>
									<th colspan="50">Status</th>
									<th colspan="50">AppliedDate</th>
									<th colspan="50">OverTime</th>
									<th colspan="50">Detail View</th>
								</tr>
								<c:forEach var="data" items="${Datas}">
									<tr>
										<td colspan="50">${data.userid}</td>
										<td colspan="50">${data.name}</td>
										<td colspan="50">${data.role}</td>
										<td colspan="50">${data.status}</td>
										<td colspan="50">${data.appliedDate}</td>
										<td colspan="50">${data.overTime}</td>
										<td colspan="50"><c:url var="updurl" scope="request"
												value="/processleave">
												<c:param name="id" value="${data.userid}" />
											</c:url> <a href="${updurl}">Detail</a> &nbsp;&nbsp;&nbsp;</td>
									</tr>
								</c:forEach>
							</table>

						</form>
						<h4>&nbsp;</h4>
					</div>
					<!-- end col2 -->

				</div>
				<!-- end colleft -->

			</div>
			<!-- end main -->

		</div>
		<!-- end page-wrapper -->

	</div>
	<!-- end page -->

</body>
</html>